package com.rc.pojo.dto.activity;

import com.rc.common.model.ImageModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.List;

/**
 * 活动表 实体类。
 *
 * @author sym
 * @since 2024-06-05
 */
@Data
public class UpdateActivityDTO {

    @ApiModelProperty("活动id")
    private Long id;

    @NotBlank
    @ApiModelProperty("活动名称")
    private String title;

    @Size(min = 1, max = 3)
    @ApiModelProperty("活动轮播图")
    private List<ImageModel> imgs;

    @NotBlank
    @ApiModelProperty("活动介绍语")
    private String description;

    @Min(0)
    @ApiModelProperty("活动单价")
    private BigDecimal price;

    @NotBlank
    @ApiModelProperty("活动内容")
    private String content;

    @ApiModelProperty("活动开始时间")
    private LocalDate beginTime;

    @ApiModelProperty("活动结束时间")
    private LocalDate endTime;

    @ApiModelProperty("活动所属园区")
    private Long areaId;
    private Long farmId;
}
